<?php

/** 
 * @author anton
 * 
 * 
 */
class Settings
{
    /* VARIABLES */
     
    /**
     * @var Config application configuration
     */
    private static $applicationConfiguration;
    
    
    /* FUNCTIONS */
    
    /**
     * Gets the application setting
     * @param string $name
     */
    public static function Get($name)
    {
        return self::$applicationConfiguration->$name;
    }

    /**
     * Sets the application setting
     * @param string $name
     */
    public static function Set($name, $value)
    {
        global $object;
        $object->config->$name = $value;
        self::$applicationConfiguration->$name = $value;
    }
    
    
    /* GETTERS / SETTERS */
    
	/**
	 * @return the $applicationConfiguration
	 */
	public static function getApplicationConfiguration ()
	{
		return Settings::$applicationConfiguration;
	}

	/**
	 * @param $applicationConfiguration the $applicationConfiguration to set
	 */
	public static function setApplicationConfiguration ($applicationConfiguration)
	{
		Settings::$applicationConfiguration = $applicationConfiguration;
	}

	
    
}

?>